"""lianxi URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from app01 import views

urlpatterns = [
    path('notebook/', views.notebook_list),
    path('notebook/add/', views.notebook_add),
    path('notebook/<int:book_id>/edit/', views.notebook_edit),
    path('notebook/<int:book_id>/delete/', views.notebook_delete),

    path('note_list/<int:book_id>/', views.note_list),
    path('note/<int:note_id>/', views.note),
    path('note/add/<int:notebook_id>/', views.note_add),
    path('note/<int:note_id>/edit/', views.note_edit),
    path('note/<int:note_id>/delete/', views.note_delete),

    path('', views.login),
    path('login/', views.login),
    path('logout/', views.logout),

]
